package com.jgssp.ad.sdk.topon.adapter;

/**
 * @author maipian
 * @description 描述
 * @date 12/9/24
 */
public class JGATInitManager {
    private static JGATInitManager instance;

    private JGATCustomController jgAtCustomController = new JGATCustomController();

    public static JGATInitManager getInstance() {
        if (instance == null) {
            synchronized (JGATInitManager.class) {
                if (instance == null) {
                    instance = new JGATInitManager();
                }
            }
        }
        return instance;
    }

    public void setJGAtCustomController(JGATCustomController jgAtCustomController) {
        this.jgAtCustomController = jgAtCustomController;
    }

    public String getOaid() {
        if (jgAtCustomController != null) {
            return jgAtCustomController.getOaid();
        }
        return "";
    }

    public String getVaid() {
        return "";
    }

    public String geAndroidId() {
        if (jgAtCustomController != null) {
            return jgAtCustomController.geAndroidId();
        }
        return "";
    }

    public String getMac() {
        if (jgAtCustomController != null) {
            return jgAtCustomController.getMac();
        }
        return "";
    }

    public String getImei() {
        if (jgAtCustomController != null) {
            return jgAtCustomController.getImei();
        }
        return "";
    }

    public boolean isDebug() {
        if (jgAtCustomController != null) {
            return jgAtCustomController.isDebug();
        }
        return true;
    }

    public boolean isCanUseWifiState() {
        if (jgAtCustomController != null) {
            return jgAtCustomController.isCanUseWifiState();
        }
        return true;
    }

    public boolean isCanUsePhoneState() {
        if (jgAtCustomController != null) {
            return jgAtCustomController.isCanUsePhoneState();
        }
        return true;
    }

    public boolean isCanUseLocation() {
        if (jgAtCustomController != null) {
            return jgAtCustomController.isCanUseLocation();
        }
        return true;
    }

    public boolean isAgreePrivacyStrategy() {
        if (jgAtCustomController != null) {
            return jgAtCustomController.isAgreePrivacyStrategy();
        }
        return true;
    }

}
